code: def __init__(self, filename=None):
      self.shapes = []
      self.imagePath = None
      self.imageData = None
      if filename is not None:
          self.load(filename)
      self.filename = filename
  
imports: import argparse
  import collections
  import datetime
  import glob
  import json
  import os
  import os.path
  import sys
  import uuid
  import PIL
  import io
  import base64
  import logging
  import math
  import imgviz
  import numpy
label_desc: Use image node_id 1 to create a new LabelFile object from inherited base classes: object with example: obj = LabelFile(filename)