class_docstr: Data from file should have a valid file path
  (are files on hard drive) and a name.
class_docstr_tok: ["Data","from","file","should","have","a","valid","file","path","(","are","files","on","hard","drive",")","and","a","name","."]
code: def name(self, name_array):
      try:
          if len(self.file_path) == len(name_array):
              self._name = name_array
              return
      except TypeError:
          pass
      self._name = (name_array,)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from abc import ABCMeta, abstractmethod
  import nibabel
  import numpy
  import tensorflow
  from six import with_metaclass, string_types
  import niftynet.io.misc_io
  from niftynet.io.image_loader import load_image_obj
  from niftynet.io.misc_io import resolve_file_name, dtype_casting
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
label_desc: Use image node_id 8 for calling the DataFromFile obj's underlying member method code with example usage: obj.name(name_array) without return types