class_docstr: Importer for image or video datasets whose location data and labels are
  stored in GeoJSON format.
  
  See :ref:`this page <GeoJSONDataset-import>` for format details.
  
  Args:
      dataset_dir (None): the dataset directory. If omitted, ``data_path``
          and/or ``labels_path`` must be provided
      data_path (None): an optional parameter that enables explicit control
          over the location of the media. Can be any of the following:
  
          -   a folder name like ``"data"`` or ``"data/"`` specifying a
              subfolder of ``dataset_dir`` where the media files reside
          -   an absolute directory path where the media files reside. In
              this case, the ``dataset_dir`` has no effect on the location of
              the data
          -   a filename like ``"data.json"`` specifying the filename of the
              JSON data manifest file in ``dataset_dir``
          -   an absolute filepath specifying the location of the JSON data
              manifest. In this case, ``dataset_dir`` has no effect on the
              location of the data
          -   a dict mapping filenames to absolute filepaths
  
          If None, this parameter will default to whichever of ``data/`` or
          ``data.json`` exists in the dataset directory
      labels_path (None): an optional parameter that enables explicit control
          over the location of the labels. Can be any of the following:
  
          -   a filename like ``"labels.json"`` specifying the location of
              the labels in ``dataset_dir``
          -   an absolute filepath to the labels. In this case,
              ``dataset_dir`` has no effect on the location of the labels
  
          If None, the parameter will default to ``labels.json``
      location_field ("location"): the name of the field in which to store
          the location data
      multi_location (False): whether this GeoJSON may contain multiple
          shapes for each sample and thus its location data should be stored
          in a :class:`fiftyone.core.labels.GeoLocations` field rather than
          the default :class:`fiftyone.core.labels.GeoLocation` field
      property_parsers (None): an optional dict mapping property names to
          functions that parse the property values (e.g., into the
          appropriate) :class:`fiftyone.core.labels.Label` types). By
          default, all properties are stored as primitive field values
      skip_missing_media (False): whether to skip (True) or raise an error
          (False) when features with no ``filename`` property are encountered
      include_all_data (False): whether to generate samples for all media in
          the data directory (True) rather than only creating samples for
          media with label entries (False)
      shuffle (False): whether to randomly shuffle the order in which the
          samples are imported
      seed (None): a random seed to use when shuffling
      max_samples (None): a maximum number of samples to import. By default,
          all samples are imported
class_docstr_tok: ["Importer","for","image","or","video","datasets","whose","location","data","and","labels","are","stored","in","GeoJSON","format",".","See",":","ref",":","`","this","page","<","GeoJSONDataset-import",">","`","for","format","details",".","Args",":","dataset_dir","(","None",")",":","the","dataset","directory",".","If","omitted",",","``","data_path","``","and\/or","``","labels_path","``","must","be","provided","data_path","(","None",")",":","an","optional","parameter","that","enables","explicit","control","over","the","location","of","the","media",".","Can","be","any","of","the","following",":","-","a","folder","name","like","``","``","data","''","``","or","``","``","data\/","''","``","specifying","a","subfolder","of","``","dataset_dir","``","where","the","media","files","reside","-","an","absolute","directory","path","where","the","media","files","reside",".","In","this","case",",","the","``","dataset_dir","``","has","no","effect","on","the","location","of","the","data","-","a","filename","like","``","``","data.json","''","``","specifying","the","filename","of","the","JSON","data","manifest","file","in","``","dataset_dir","``","-","an","absolute","filepath","specifying","the","location","of","the","JSON","data","manifest",".","In","this","case",",","``","dataset_dir","``","has","no","effect","on","the","location","of","the","data","-","a","dict","mapping","filenames","to","absolute","filepaths","If","None",",","this","parameter","will","default","to","whichever","of","``","data\/","``","or","``","data.json","``","exists","in","the","dataset","directory","labels_path","(","None",")",":","an","optional","parameter","that","enables","explicit","control","over","the","location","of","the","labels",".","Can","be","any","of","the","following",":","-","a","filename","like","``","``","labels.json","''","``","specifying","the","location","of","the","labels","in","``","dataset_dir","``","-","an","absolute","filepath","to","the","labels",".","In","this","case",",","``","dataset_dir","``","has","no","effect","on","the","location","of","the","labels","If","None",",","the","parameter","will","default","to","``","labels.json","``","location_field","(","``","location","''",")",":","the","name","of","the","field","in","which","to","store","the","location","data","multi_location","(","False",")",":","whether","this","GeoJSON","may","contain","multiple","shapes","for","each","sample","and","thus","its","location","data","should","be","stored","in","a",":","class",":","`","fiftyone.core.labels.GeoLocations","`","field","rather","than","the","default",":","class",":","`","fiftyone.core.labels.GeoLocation","`","field","property_parsers","(","None",")",":","an","optional","dict","mapping","property","names","to","functions","that","parse","the","property","values","(","e.g.",",","into","the","appropriate",")",":","class",":","`","fiftyone.core.labels.Label","`","types",")",".","By","default",",","all","properties","are","stored","as","primitive","field","values","skip_missing_media","(","False",")",":","whether","to","skip","(","True",")","or","raise","an","error","(","False",")","when","features","with","no","``","filename","``","property","are","encountered","include_all_data","(","False",")",":","whether","to","generate","samples","for","all","media","in","the","data","directory","(","True",")","rather","than","only","creating","samples","for","media","with","label","entries","(","False",")","shuffle","(","False",")",":","whether","to","randomly","shuffle","the","order","in","which","the","samples","are","imported","seed","(","None",")",":","a","random","seed","to","use","when","shuffling","max_samples","(","None",")",":","a","maximum","number","of","samples","to","import",".","By","default",",","all","samples","are","imported"]
code: def __len__(self):
      return self._num_samples
  
imports: import logging
  import os
  import eta.core.serial
  import eta.core.utils
  import fiftyone.core.fields
  import fiftyone.core.labels
  from fiftyone.core.sample import Sample
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.core.validation
  import fiftyone.utils.data
label_desc: Use image node_id 3 for calling the GeoJSONDatasetImporter obj's underlying member method code with example usage: obj.__len__() and returns: self