class_docstr: Backing document for samples that have not been added to a dataset.
class_docstr_tok: ["Backing","document","for","samples","that","have","not","been","added","to","a","dataset","."]
code: def __init__(self, **kwargs):
      filepath = fos.normalize_path(kwargs["filepath"])
  
      kwargs["id"] = kwargs.get("id", None)
      kwargs["filepath"] = filepath
      kwargs["_rand"] = _generate_rand(filepath=filepath)
      kwargs["_media_type"] = fomm.get_media_type(filepath)
      kwargs["_dataset_id"] = None
  
      self._data = OrderedDict()
  
      for field_name in self.default_fields_ordered:
          value = kwargs.pop(field_name, None)
  
          if value is None and field_name not in ("id", "_dataset_id"):
              value = self._get_default(self.default_fields[field_name])
  
          self._data[field_name] = value
  
      self._data.update(kwargs)
  
imports: from collections import OrderedDict
  import random
  import fiftyone.core.fields
  import fiftyone.core.metadata
  import fiftyone.core.media
  import fiftyone.core.storage
  from .document import Document, SerializableDocument
  from .mixins import DatasetMixin, get_default_fields, NoDatasetMixin
label_desc: Use image node_id 1 to create a new NoDatasetSampleDocument object from inherited base classes: NoDatasetMixin, SerializableDocument with example: obj = NoDatasetSampleDocument()