code: def avro_file(
          self,
          hdfs_dir,
          avro_schema,
          name=None,
          database=None,
          external=True,
          persist=False,
      ):
          
          name, database = self._get_concrete_table_path(
              name, database, persist=persist
          )
  
          stmt = ddl.CreateTableAvro(
              name, hdfs_dir, avro_schema, database=database, external=external
          )
          self._execute(stmt)
          return self._wrap_new_table(name, database, persist)
docs: Create a (possibly temporary) table to read a collection of Avro data.
  
          Parameters
          ----------
          hdfs_dir : string
            Absolute HDFS path to directory containing avro files
          avro_schema : dict
            The Avro schema for the data as a Python dict
          name : string, default None
          database : string, default None
          external : boolean, default True
          persist : boolean, default False
  
          Returns
          -------
          avro_table : ImpalaTable