class_docstr: Fake for CompetitionStorageClient to be used in tests.
class_docstr_tok: ["Fake","for","CompetitionStorageClient","to","be","used","in","tests","."]
docstr: Inits FakeStorageClient with given blobs.
  
  Args:
    blobs: either list of blob names or dict with mapping from blob names to
      their content
  
  Raises:
    TypeError: if blobs argument has invalid type
docstr_tok: ["Inits","FakeStorageClient","with","given","blobs",".","Args",":","blobs",":","either","list","of","blob","names","or","dict","with","mapping","from","blob","names","to","their","content","Raises",":","TypeError",":","if","blobs","argument","has","invalid","type"]
code: def __init__(self, blobs=None):
      """Inits FakeStorageClient with given blobs.
  
      Args:
        blobs: either list of blob names or dict with mapping from blob names to
          their content
  
      Raises:
        TypeError: if blobs argument has invalid type
      """
      if blobs is not None:
          if isinstance(blobs, dict):
              self._blobs = copy.deepcopy(blobs)
          elif isinstance(blobs, list):
              self._blobs = {k: "" for k in blobs}
          else:
              raise TypeError("Invalid type of blobs argument")
      else:
          self._blobs = {}
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from io import StringIO
  import six
label_desc: Use image node_id 1 to create a new FakeStorageClient object from inherited base classes: object with example: obj = FakeStorageClient(blobs)