input: from __future__ import (
      print_function,
      unicode_literals,
      absolute_import
  )
  
  import argparse
  import json
  import os
  
  def get_path():
      return unicode(os.path.abspath('.'))
  
  def parse_args():
      _parser = argparse.ArgumentParser()
      _parser.add_argument('--fixture', type=str, help='fixture file to load', default='properties.json')
      _parser.add_argument('--fixture_folder', type=str,
                           default='models/fixtures',
                           help='where fixtures are stored.'
                           )
      return _parser.parse_args()
  
  def main(base_path):
      properties_to_save = []
      args = parse_args()
      path = os.path.sep.join([base_path,
                               'app',
                               args.fixture_folder,
                               args.fixture])
      with open(path) as file_:
          data = json.load(file_)
      properties = data['properties']
      for property_ in properties:
          property_.pop('id')
          properties_to_save.append(Property(**property_))
      Property.objects.insert(properties_to_save)
  
      return len(properties_to_save)
  
  if __name__ == '__main__':
      from app.models.properties import Property
      base_path = get_path()
      out = main(base_path)
      print("{} objects saved".format(out))
  
  """
  This code loads a JSON fixture file, extracts properties from it, creates Property objects from the properties, and saves them to the database. To use this code, you need to create a JSON fixture file with a "properties" key containing a list of property objects. Then, run the code with the appropriate command line arguments to specify the fixture file and folder. The saved objects will be printed to the console.
  
  Example:
  >>> if __name__ == '__main__':
          from app.models.properties import Property
          base_path = get_path()
          out = main(base_path)
          10  # Assuming the JSON file contained 10 property objects
  """
output:     if not os.path.exists(path):
          raise FileNotFoundError("Fixture file not found at path: {}".format(path))
      if not properties:
          raise ValueError("No properties found in the fixture file.")